package com.douban.business;

import java.io.IOException;
import java.net.URL;

import com.core.ContentFetcher;
import com.core.DoubanURL;
import com.douban.constants.DoubanMediaTypeConstant;
import com.douban.constants.DoubanUserActionConstant;

import junit.framework.TestCase;

public class DoubanContentFetcherTest extends TestCase {

	ContentFetcher unitUnderTest = null;
	
	public void testLoadContentMovieDo() throws InterruptedException{
		
		URL url = DoubanURL.getInstance().getURL("andmay", DoubanMediaTypeConstant.MOVIE.getValue(), DoubanUserActionConstant.DO.getValue(), 0);
		unitUnderTest = new DoubanContentListFetcher(url);
		Thread.sleep(5000);

	}
	
	public void testLoadContentBookWish() throws InterruptedException{
		
		URL url = DoubanURL.getInstance().getURL("andmay", DoubanMediaTypeConstant.BOOK.getValue(), DoubanUserActionConstant.WISH.getValue(), 0);
		unitUnderTest = new DoubanContentListFetcher(url);
		Thread.sleep(5000);
		
	}
}
